package com.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;

public class MyBookService extends Service {
    public MyBookService() {
    }

    @Override
    public IBinder onBind(Intent intent) {
        return new Mybind();
    }

    class Mybind extends BookService.Stub{

        @Override
        public String getBookName() throws RemoteException {

            return "三国演义";
        }

        @Override
        public void setBookName(String bookName) throws RemoteException {

        }
    }
}
